package com.bonc.ioc.config;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Description TODO
 * @Author wxf
 * @Date 2021/4/22
 **/
@Component
@ConfigurationProperties(prefix = "opinion")
public class OpinionConfig {
    /**
     * 次数
     */
    private Integer count;

    /**
     * 时间
     */

    private Long time;

    public OpinionConfig() {
    }

    public OpinionConfig(Integer count, Long time) {
        this.count = count;
        this.time = time;
    }

    @Override
    public String toString() {
        return "OpinionConfig{" +
                "count=" + count +
                ", time=" + time +
                '}';
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Long getTime() {
        return time;
    }

    public void setTime(Long time) {
        this.time = time;
    }
}
